#!/bin/bash


# 检查是否有参数传入
if [ $# -eq 0 ]; then
  echo "Usage: $0 { server | client | clear}"
  exit 1
fi

# 根据第一个参数执行操作
case "$1" in
  server)
    make -f server.makefile
    ;;
  client)
    make -f client.makefile
    ;;
  clear)
    make -f client.makefile clean
    make -f server.makefile clean
    ;;
  *)
    echo "Error: Unknown command '$1'"
    exit 1
    ;;
esac